<?php
/*Problem Domain
To create a class that represents the Technology entity of the TMS
*/

/*
- Technology is new Technology(int, String, String)

- interp, Technology is new Technology(tech_id, tech_name, desc) represents the Technology Entity of the TMS where
	- tech_id is the unique ID of the Technology.
	- tech_name is the name of the Technology.
	- desc is a short description about the technology itself.

- Example.
$tech1 = new Technology('php', 'php is a server side scripting language');
$tech2 = new Technology('webui', 'webui helps in creating attractive web pages');

- Template.
function fn-for-Technology()
{
	...$this->tech_id;
	...$this->tech_name;
	...$this->desc;
}
*/

class Technology
{
	private $tech_id;
	private $tech_name;
	private $desc;

	/*String , String
	purpose. initializes the newly created Technology*/
	public function __construct($tech_name , $desc = null, $tech_id = null)
	{
		$this->tech_name = $tech_name;
		$this->desc	 = $desc;
		$this->tech_id	 = $tech_id;
	}
	 
	/*void -> int
        purpose. produces the tech ID of the current Technology*/
        public function getId()
        {
                return $this->tech_id;
        }

        /*int -> void
        purpose. sets the given tech ID for the current Technology*/
        public function setId($tech_id)
        {
                $this->tech_id = $tech_id;
        }

	/*void -> String
        purpose. produces the tech name of the current Technology*/
        public function getTechName()
        {
                return $this->tech_name;
        }

        /*int -> void
        purpose. sets the given tech name for the current Trchnology*/
        public function setTechName($tech_name)
        {
                $this->tech_name = $tech_name;
        }

	/*void -> String
        purpose. produces the description of the current Technology*/
        public function getDesc()
        {
                return $this->desc;
        }

        /*int -> void
        purpose. sets the given description for the current Technology*/
        public function setDesc($desc)
        {
                $this->desc = $desc;
        }
} 
?>
